package Day1.graph;

public class Shape {
    private String color;
    public Shape(String color) {
        this.color = color;
    }

    public void draw() {
        System.out.println("正在画图形，颜色：" + this.getColor());
    }

    public String getColor() {
        return this.color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}